#include "lnqueue.h"

int main ()
{
    PLQueue queue;
    SIZE_T i = 0;
    ELEMTYPE x;

    queue = createQueue();

    if (queue != NULL)
    {
        while (i < 10)
        {
            enqueue(queue, 'a' + i);
            printQueue(queue);
            i++;
        }

        dequeue(queue);
        dequeue(queue);
        printQueue(queue);
/*
        if (frontQueue(queue, &x) == 1)
        {
            printf("ELEM %c is the head of QUEUE\n", x);
        }
*/

        emptyQueue(queue);
        printQueue(queue);
        destroyQueue(&queue);
    }
    return 0;
}
